#include "GameEntity.h"
#include "Vector2.h"

GameEntity::GameEntity()
{
	SetPosition(Vector2::Zero());

	GameEntity::visible = true;
}

void GameEntity::Init(ALLEGRO_BITMAP *image, Vector2 position)
{
	GameEntity::position.Set(position.X, position.Y);

	if (image == NULL)
	{
		GameEntity::image = image;
	}
}

void GameEntity::SetImage(ALLEGRO_BITMAP* img)
{
	if (img != NULL)
	{
		GameEntity::image = img;
	}
}

void GameEntity::Update()
{

}

void GameEntity::Update(float time)
{

}

void GameEntity::Draw()
{
	if (GameEntity::IsVisible())
	{
		// Draw something
	}
}
